package fr.oz.core.fonts 
{
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class FontList
	{
		//--------------------------------------------------------------------------
		//
		//  Public vars
		//
		//--------------------------------------------------------------------------
		public static var fonts:Vector.<FontListDatas>;
		
		
		//--------------------------------------------------------------------------
		//
		//  Constructor
		//
		//--------------------------------------------------------------------------
		public function FontList() {}
		
		
		//--------------------------------------------------------------------------
		//
		//  Public static methods
		//
		//--------------------------------------------------------------------------
		public static function getFonts(xml:XML):void
		{
			var nbFonts:uint = xml.children().length();
			
			fonts = new Vector.<FontListDatas>();
			
			for (var i:uint = 0; i < nbFonts; i++) {
				var font:FontListDatas = new FontListDatas();
				font.id = xml.font[i].@id;
				font.name = xml.font[i].@name;
				font.location = xml.font[i];
				
				fonts.push(font);
			}
		}
		
	}

}